const express = require('express');
const router = express.Router();
const backtestController = require('../controllers/backtest');

// 获取回测记录
router.get('/', backtestController.getBacktests);

// 获取单个回测结果
router.get('/:id', backtestController.getBacktestById);

// 创建回测
router.post('/', backtestController.createBacktest);

// 导出回测报告
router.get('/:id/export', backtestController.exportBacktestReport);

module.exports = router;